<?xml version='1.0' encoding='UTF-8' ?>
<!DOCTYPE composition PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:h="http://java.sun.com/jsf/html"
      xmlns:f="http://java.sun.com/jsf/core"
      xmlns:p="http://primefaces.org/ui">
    <h:body>        
        <!--<p:messages id="messages" globalOnly="true" showDetail="true" autoUpdate="true" />--> 
        <p:dataTable value="#{webServiceManagedBean.rateList}" var="r">
            <f:facet name="header">  
                Official bank rate<br/>
                #{webServiceManagedBean.txDate}
            </f:facet>  
            <p:column headerText="From">
                #{r.fromCurrency}
            </p:column>
            <p:column headerText="To">
                #{r.toCurrency}
            </p:column>
            <p:column headerText="Rate">
                #{r.rate}
            </p:column>                   
        </p:dataTable>
    </h:body>
</html>